package com.hudilao.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hudilao.dto.StockLogDTO;
import com.hudilao.entity.StockLog;

import java.time.LocalDateTime;
import java.util.List;

public interface StockLogService {

    //新增库存增加记录
    void addStockLog(Long dishId, Integer quantity);

    //新增库存减少记录
    void reduceStockLog(Long dishId, Integer quantity);

    //返回最新库存记录更新时间
    LocalDateTime getLatestStockLogUpdateTime(Long dishId);

    //反回库存记录
    Page<StockLogDTO> queryStockLogs(Long dishId, int page, int pageSize);


}

